package com.friend.campusnotice.bean;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/5/24.
 */
public class Contacts implements Parcelable {
    String contactName;
    String phoneNumber;
    Long contact_Id;
    Long photoid;
    Boolean isPick = false;

    public Boolean getPick() {
        return isPick;
    }

    public void setPick(Boolean pick) {
        isPick = pick;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public Long getContact_Id() {
        return contact_Id;
    }

    public void setContact_Id(Long contact_Id) {
        this.contact_Id = contact_Id;
    }

    public Long getPhotoid() {
        return photoid;
    }

    public void setPhotoid(Long photoid) {
        this.photoid = photoid;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.contactName);
        dest.writeString(this.phoneNumber);
        dest.writeValue(this.contact_Id);
        dest.writeValue(this.photoid);
        dest.writeValue(this.isPick);
    }

    public Contacts() {
    }

    protected Contacts(Parcel in) {
        this.contactName = in.readString();
        this.phoneNumber = in.readString();
        this.contact_Id = (Long) in.readValue(Long.class.getClassLoader());
        this.photoid = (Long) in.readValue(Long.class.getClassLoader());
        this.isPick = (Boolean) in.readValue(Boolean.class.getClassLoader());
    }

    public static final Parcelable.Creator<Contacts> CREATOR = new Parcelable.Creator<Contacts>() {
        @Override
        public Contacts createFromParcel(Parcel source) {
            return new Contacts(source);
        }

        @Override
        public Contacts[] newArray(int size) {
            return new Contacts[size];
        }
    };
}
